package com.xyoto.takeawayBusiness.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * orders
 *
 * @author
 */
@Data
@ApiModel("订单表PO")
public class OrdersPO {

    @ApiModelProperty("订单id")
    private String id;

    @ApiModelProperty("店铺id")
    private Integer shopId;

    @ApiModelProperty("用户地址id")
    private Integer userAddrId;

    @ApiModelProperty("打包费")
    private Integer packPrice;

    @ApiModelProperty("配送费")
    private Integer sendPrice;

    @ApiModelProperty("支付金额（1元=100）")
    private Integer payerTotal;

    @ApiModelProperty("订单状态(1：待处理，2：已送达，3：配送中，4：处理中，5：已完成，" +
            "6：已拒绝，7：退款失败，8：已取消，9：已支付，10未支付，11：退款中，12：客服介入中)")
    private Short orderStatus;

    @ApiModelProperty("订单类型")
    private Short orderType;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("预计送达时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date estimateTime;

    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}